package com.jack.payment.entity.result;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.jack.payment.entity.generate.billing.BillingModel;
import com.jack.payment.util.serializer.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "流水对账信息")
public class BillingPackingModel implements Serializable {
    @Schema(description = "当前月收入")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal monthIncome;
    @Schema(description = "单前月退还")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal monthRefund;
    @Schema(description = "当前日期")
    private String currentTime;
    @Schema(description = "账单流水列表")
    private List<BillingModel> billingList;
}
